<!--
 * @Author: panda
 * @Date: 2022-05-18 12:26
 * @Description: 上传视图
-->
<template>
  <el-row>
    <el-col :span="0" />
    <el-col :span="2">
      <el-menu
        :default-active="activeIndex"
        class="el-menu-vertical-demo"
        style="border: none"
        router
      >
        <el-menu-item index="mainUpload">
          <span>投稿</span>
        </el-menu-item>
        <el-menu-item index="uploadManage">
          <span>稿件管理</span>
        </el-menu-item>
        <el-menu-item index="dataCenter">
          <span>数据中心</span>
        </el-menu-item>
      </el-menu>
    </el-col>
    <el-col :span="20">
      <router-view v-slot="{ Component }">
        <keep-alive>
          <component :is="Component" />
        </keep-alive>
      </router-view>
    </el-col>
  </el-row>
</template>

<script lang="ts">
import {defineComponent, ref} from 'vue'

export default defineComponent({
  name: 'UploadView',
  setup() {
    const activeIndex = ref('mainUpload')
    return {
      activeIndex
    }
  }

})
</script>

<style scoped>

</style>
